﻿package org.cshoo.sys.data.entity;

import java.io.Serializable;

/**
 * 权限实体类
 * @author 杨翼
 * 2012年10月5日 杨翼 创建
 */
public class Authority implements Serializable{
	/**
	 * 权限id
	 */
	private Long id;
	/**
	 * 权限编号
	 */
	private String code;
	/**
	 * 权限名称
	 */
	private String name;
	/**
	 * 权限类型：角色菜单权限，用户菜单权限
	 */
	private String type;
	/**
	 * 所属角色
	 */
	private Role role;
	/**
	 * 所属用户
	 */
	private User user;
	
	/**
	 * 菜单
	 */
	private Menu menu;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Menu getMenu() {
		return menu;
	}
	public void setMenu(Menu menu) {
		this.menu = menu;
	}
}
